package zhieasy.cn.persistence.mapper.forum;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import zhieasy.cn.model.forum.ForumInfo;

import java.util.List;

@Mapper
public interface ForumInfoMapper extends BaseMapper<ForumInfo> {

    public int addLikeOfForum(@Param("forumId")int forumId);

    public int subtractLikeOfForum(@Param("forumId")int forumId);

    public int addClickOfForum(@Param("forumId")int forumId);

    public int addForwardOfForum(@Param("forumId")int forumId);

    public List<ForumInfo> selectForumListByPage(@Param("sizeBegin")int sizeBegin,@Param("sizeEnd")int sizeEnd);
}
